package com.cykj.controller;

import com.cykj.dto.ResponseDTO;
import com.cykj.service.ICategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Program: Mooc-User
 * @Package: com.cykj.controller
 * @Author: 张俊杰
 * @Create: 2025-07-15 13:26
 * @Description: TODO
 * @Vision: 1.0
 **/
@RestController
@RequestMapping("category")
public class CategoryController {

    @Autowired
    private ICategoryService categoryService;

    @GetMapping("list")
    public ResponseDTO getListCategory() {
        return categoryService.getListCategory();
    }
}
